FROM registry.cn-beijing.aliyuncs.com/ligang1359/jdk8:v1
MAINTAINER ligang

ENV HOME_PATH /data/java
ENV RESOURCE_JAR $COMMIT_MODEL_AUTH_P2
#ENV RESOURCE_JAR auth-server.jar

ENV TARGET_JAR auth.jar


ENV ACTIVE=${ACTIVE}

RUN echo $(pwd)
RUN echo $(ls -l)
#ADD $RESOURCE_JAR $HOME_PATH/$TARGET_JAR

ADD ef-auth/auth-server/target/auth-server.jar /data/java/auth.jar
#WORKDIR $HOME_PATH



#RUN chmod 777 $HOME_PATH/*.jar

EXPOSE 8011


ENTRYPOINT ["java", "-Xmx512m","-jar", "/data/java/auth.jar"]
CMD ["--spring.profiles.active=${ACTIVE}"]


#docker run --name app1 -p 8081:8080 -it --restart=always --privileged=true registry.cn-beijing.aliyuncs.com/xm-mice/gateway:v1 /bin/bash



#docker run --name=auth -p 8011:8011 -it -d --network bridge0 --restart=always --privileged=true registry.cn-beijing.aliyuncs.com/xm-mice/auth:v1



# http://101.43.168.166:8081/hello